package com.example.blog.common;

/**
 * @ClassName StatusEnums
 * @Description TODO
 * @Author Wang Li Hong
 * @date 2024/1/10 17:08
 * @Version 1.0
 */
public enum StatusEnums {
    /**
     * 阅读状态
     */
    READ(1,"已读"),
    NOT_READ(0,"未读"),

    /**
     * 文章状态
     */
    DRAFT(0, "草稿箱"),
    PENDING(1, "待审核"),
    PUBLISHED(2, "已发布"),
    REJECTED(3, "驳回"),

    ;


    private final int value;
    private final String name;

    StatusEnums(int value, String name) {
        this.value = value;
        this.name = name;
    }


    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
